﻿/**
 * Reboulder - Partial Boulder Dash clone
 * Jesús Sagra, 2014
 * 
 * Rock class: the essence of Boulder Dash
 * 
 * Version    Date     Changes
 * -----------------------------------------------------
 *  0.01   07-dic-2014  Constructor.
 */

class Rock : Sprite
{
    public Rock(int posX, int posY)
        : base(posX, posY)
    {
        speed = 8;
        image = new Image("data/rock.png");
    }


    public void Move()
    {
        y += speed;
    }

    public override string ToString()
    {
        return "rock";
    }
}